The magic of template reference variable